package me.itsoo.artemis.framework.repository.mapper.condition;

/**
 * AbstractCondition
 *
 * @author zxy
 * @version 0.0.1
 * @since 2023/5/17
 */
public abstract class AbstractCondition {

    /**
     * 获取条件命令
     *
     * @return String
     */
    public abstract String getConditionCommand();

    /**
     * 获取条件参数
     *
     * @return Object[]
     */
    public abstract Object[] getConditionArgs();

    @Override
    public String toString() {
        return this.getConditionCommand();
    }
}
